ENH:Expose PDF3DCalculator in Python bindings#88
Conversation
sbillinge
left a comment
There was a problem hiding this comment.
We are moving from boost to nanobind. This is on the nano branch which is what we should use as base branch.
Also, we will have to migrate the libdiffpy code also. Maybe merge the nano branch into 3DPDF branch?
|
Thanks Simon. I agree that this should move away from the Boost.Python wrapper path. I checked the currently visible branches on diffpy/diffpy.srreal. I see Once the correct base is clear, I will prepare a clean PDF3DCalculator binding branch against that nanobind base, rather than continuing to extend the current Boost.Python wrapper in this PR. I will also keep this dependent on the companion libdiffpy PDF3DCalculator PR. |
These edits are not merged yet, they are in #86 . It would be a help if you could review them and look for any issues. Also, that PR is showing up as a draft. I am not sure why. Perhaps you could work with the team to help us get to a point where we can merge this safely, then you can use the |
|
@joeseaer I gave a quick look at #86 and it is a bit of a dirty PR so we will redo it, but please could you look at the code updates over there and see if you see any issues so when we redo it we can incorporate any improvements that you can see. @SYMSCAE please can you communicate with @joeseaer who is writing a new 3D PDF calculator. @joeseaer I think we discussed the name for this class with @dragonyanglong and thought I had a quick conversation with Gemini and I think the best is to move to |
Hi @sbillinge @dragonyanglong ,
This PR exposes the new libdiffpy PDF3DCalculator through diffpy.srreal.
It adds the Boost.Python binding for PDF3DCalculator, NumPy accessors for the
3D PDF and radial histogram outputs, binary grid export, delta pair filtering,
pickle support, and Python-side property wrappers for the 3D calculator
attributes.
This PR depends on the companion libdiffpy PR that adds PDF3DCalculator and
its supporting C++ helpers.